package com.gc.server.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import com.gc.server.entity.SchoolEntity;
import com.gc.server.vo.SchoolVo;

                            
/**
 * 学校实体
 * 表名 school
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 19:28:49 CST 2020
 */
@Data
public class  SchoolUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //学校名称
            @ExcelProperty("学校名称")
            private String name;
        
                        //省
            @ExcelProperty("省")
            private String province;
        
                        //市
            @ExcelProperty("市")
            private String city;
        
                        //县
            @ExcelProperty("县")
            private String county;
        
                        //详细地址
            @ExcelProperty("详细地址")
            private String detail;
        
                        //备注
            @ExcelProperty("备注")
            private String remark;
        
    
    public SchoolUp() {

    }

    public SchoolVo toVo() {

        SchoolEntity entity = new SchoolEntity();
            SchoolVo vo = new SchoolVo(entity);
                                    entity.setId(id);
            
                                    entity.setName(name);
            
                                    entity.setProvince(province);
            
                                    entity.setCity(city);
            
                                    entity.setCounty(county);
            
                                    entity.setDetail(detail);
            
                                    entity.setRemark(remark);
            
        
        return  vo;
    }



}
